LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_TOP_DIR := $(LOCAL_PATH)/../
LOCAL_SRC_DIR := $(LOCAL_PATH)/../dec
LOCAL_TST_DIR := $(LOCAL_PATH)/../test
LOCAL_VPU_DIR := $(LOCAL_PATH)/../../common
LOCAL_INC_DIR := $(LOCAL_PATH)/../../common/include

LOCAL_MODULE := libhw_decoder

LOCAL_ARM_MODE := arm 

LOCAL_ARM_NEON := true

LOCAL_STATIC_LIBRARIES += libyuv_static
                            
LOCAL_SHARED_LIBRARIES += libvpu

LOCAL_C_INCLUDES := $(LOCAL_PATH) \
					/data/smdk/sm3188d_andows/hardware/rk29/jpeghw/src_dec/inc \
					/data/smdk/sm3188d_andows/hardware/rk29/libon2 \
					/work/wangchen/jpeh/common/ \
					/data/smdk/sm3188d_andows/external/libyuv/files/include \
					/data/smdk/sm3188d_andows/hardware/rk29/jpeghw/src_dec/common/ \
					/data/smdk/sm3188d_andows/hardware/rk29/jpeghw/release/decoder_release \
					/data/smdk/sm3188d_andows/hardware/libhardware/include

LOCAL_SRC_FILES :=  hw_jpeg_decode_api.c fbl.c \
					android-memcpy.S android-memset.S  yuvlib.cpp


LOCAL_CFLAGS := -DARM_NEON_ENABLE -mfpu=neon -flax-vector-conversions -DDEBUG

LOCAL_CFLAGS += -DJPEGDEC_TRACE -DJPEGDEC_ASIC_TRACE -DPP_TRACE -DPP_JPEGDEC_PIPELINE_SUPPORT

LOCAL_LDFLAGS := -llog

LOCAL_LDFLAGS += $(LOCAL_PATH)/libjpeghwdec.so

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_TOP_DIR := $(LOCAL_PATH)/../
LOCAL_SRC_DIR := $(LOCAL_PATH)/../dec
LOCAL_TST_DIR := $(LOCAL_PATH)/../test
LOCAL_VPU_DIR := $(LOCAL_PATH)/../../common
LOCAL_INC_DIR := $(LOCAL_PATH)/../../common/include

LOCAL_MODULE := hw_decode_test

LOCAL_ARM_MODE := arm
LOCAL_ARM_NEON := true

LOCAL_STATIC_LIBRARIES :=
                            
LOCAL_SHARED_LIBRARIES := libhw_decoder

LOCAL_C_INCLUDES := $(LOCAL_PATH) \
					/data/smdk/sm3188d_andows/hardware/rk29/jpeghw/src_dec/inc \
					/data/smdk/sm3188d_andows/hardware/rk29/libon2 \
					/work/wangchen/jpeh/common/ 
LOCAL_CFLAGS := -DJPEGDEC_TRACE -DJPEGDEC_ASIC_TRACE

LOCAL_SRC_FILES :=  hw_jpeg_decode_test_api.c

include $(BUILD_EXECUTABLE)
